public class ConditionalOperator {
    public static void main(String[] args) {
        int x = 1, y = 2;

        int z = (x < y) ? -1 : 0; // if...else
        System.out.println(z);
    }
}
